<?php $assetsUri=$this->assetsUri();$navStr='';foreach($ZMODULE['navMenus']as$key=>$navItem){if($key>5)break;$subStr='';$isActive=false;if($ZMODULE['showSubMenu']){foreach($navItem['children']as$subItem){$subStr.=sprintf('<li class="subNavItem"><a href="%s" target="%s">%s</a></li>',htmlspecialchars($subItem['url']),$subItem['target'],htmlspecialchars($subItem['name']));if($subItem['active'])$isActive=true;}}if($subStr){$subStr='<ul class="subNavs">'.$subStr.'</ul>';}if($isActive||$navItem['active']){$activeCls=' active';}else{$activeCls='';}$navStr.=sprintf('<li class="navItem%s"><a href="%s" target="%s">%s</a>%s</li>',$activeCls,htmlspecialchars($navItem['url']),$navItem['target'],htmlspecialchars($navItem['name']),$subStr);}?> <div class="zmsun-module zmsun-de-siteNav"><nav class="conBox"><ul class="navs"><?=$navStr ?></ul></nav></div>